<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BUIScreenAction
 *
 * @author ID59C
 */
class BUIScreenAction {
    
    const STATUS_BEGIN = "begin";
    const STATUS_IN_PROGRESS = "progressing";
    const STATUS_COMPLETED = "completed";

    //put your code here
    private $screen = null;
    private $action = null;
    private $inputElements = array();
    private $status = null;

    public function __construct($screenName = NULL, $action = null) {
        $this->screen = $screenName;
        $this->action = $action;
    }

    public function setScreen($name) {
        $this->screen = $name;
    }

    public function setAction($action) {
        $this->action = $action;
    }

    public function getScreen() {
        return $this->screen;
    }

    public function getAction() {
        return $this->action;
    }

    public function setStatus($status) {
        $this->status = $status;
    }

    public function getStatus() {
        return $this->status;
    }

    public function addInputElement($name = NULL, $value = NULL, $displayValue = NULL, $type = NULL) {
        $type = $type === NULL ? 'text' : $type;
        $inputElement = array('name' => $name, 'value' => $value, 'displayValue' => $displayValue, 'type' => $type);
        array_push($this->inputElements, $inputElement);
    }
    
    public function getInputElements()
    {
        return $this->inputElements;
    }

}

?>
